package com.icehand.learn.mybatis.model.product;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_season")
@Accessors(chain = true)
public class Season extends Model<Season> {
	@TableId(value = "season_id",type = IdType.AUTO)
	private Integer seasonId;
	private String code;
	private String name;
	private String chineseName;
	private Integer sortOrder;
	private Date dateModified;
	private Date dateAdded;

	@Override
	protected Serializable pkVal() {
		return seasonId;
	}
}
